package business

import (
	"github.com/gin-gonic/gin"
	api "ruoyi-go/app/admin/api/business"
	"ruoyi-go/utils/jwt"
)

func InitTSensorData(e *gin.Engine) {
	// 路由权限相关
	v2 := e.Group("business")
	{
		auth := v2.Group("")
		auth.Use(jwt.JWTAuthMiddleware())
		{
			// 查询
			auth.GET("/sensordata/list", api.GetPageLimitTSensorData)
			// 添加
			auth.POST("/sensordata", api.CreateTSensorData)
			// 修改
			auth.PUT("/sensordata", api.UpdateTSensorData)
			// 删除
			auth.DELETE("/sensordata/:ids", api.DeleteTSensorDataByIds)
			// 获取详情
			auth.GET("/sensordata/:id", api.GetTSensorData)
		}
	}
} 